import request from '@/utils/request'

export default {
  getAuthorList(){
    return request({
      url:`/service_video/author/getAuthorList`,  /*注意符号*/
      method:'get',
    })
  },
  addContentInfo(contentVO){
    return request({
      url:`/service_video/content/addContentInfo`,
      method:'post',
      data:contentVO
    })
  }
  ,
  getOneContent(id){
    return request({
      url:`/service_video/content/getOneContent/${id}`,
      method:'get'
    })
  },
  updateContent(contentVo){
    return request({
      url:`/service_video/content/updateContent`,
      method:'post',
      data:contentVo
    })
  },
  getViewModel(contentId) {
    return request({
      url:`/service_video/content/getContentView/${contentId}`,
      method:'get',
    })
  },

  addSend(contentId) {
      return request({
        url:`/service_video/content/sendContent/${contentId}`,
        method:'post'
      })
  },
//作品列表
getContentPageList(page, limit, searchObj) {
  return request({
    url: `/service_video/content/getContentPageQuery/${page}/${limit}`,
    method: 'get',
    params: searchObj
  })
},
  deleteContentById(id) {
    return request({
      url: `/service_video/content/deleteContent/${id}`,
      method: 'post'
    })
  }
}
